<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统参数管理</title>
<#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
function open(value){
	var selectItemId = getSelectItemId();
	var row = getSelectItem();
	if (selectItemId)
		top.openModule("sys_module", row.bc_description +"-子集",  
		"${request.contextPath}/basecode/"+ selectItemId +"/index");
}
function levelFormatter(value,rowData,rowIndex){
	return "<a class=\"function_11\" href=\"javascript:open('"+value+"')\">模块管理</a>";
}
</script>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background: #eee;">
		<div id="toolbar">
			<@auth code="base:parameter:new"><a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc;" onclick="javascript:add()">新增</a></@auth>
			<@auth code="base:parameter:*:edit"><a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-edit" style="border: 1px solid #ccc;" onclick="javascript:edit()">编辑</a></@auth>
			<@auth code="base:parameter:*:delete"><a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-remove" style="border: 1px solid #ccc;" onclick="javascript:del()">删除</a></@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query" idField="bc_code" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="bc_code" width="100">编码</th>
					<th field="bc_description" width="100">描述</th>
					<th field="bc_parent_code" formatter="levelFormatter">下一级</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</html>